using Microsoft.Xna.Framework;

namespace Blood_Siege
{
    //The main menu screen is the first thing displayed when the game starts up.
    class LoadGameScreen : MenuScreen
    {

        //Constructor fills in the menu contents.
        public LoadGameScreen() : base("Load Game")
        {
            // Create our menu entries.
            MenuEntry KurowskMenuEntry = new MenuEntry("Kurowsk");
            MenuEntry exitMenuEntry = new MenuEntry("Exit");

            // Hook up menu event handlers.
            KurowskMenuEntry.Selected += KurowskMenuEntrySelected;
            exitMenuEntry.Selected += OnCancel;

            // Add entries to the menu.
            MenuEntries.Add(KurowskMenuEntry);
            MenuEntries.Add(exitMenuEntry);
        }

        //Event handler for when the Play Game menu entry is selected.
        void KurowskMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            //LoadingScreen.Load(StateManager, true, e.PlayerIndex, new GameplayScreen());
        }

        //When the user cancels the main menu, ask if they want to exit the sample.
        protected override void OnCancel(PlayerIndex playerIndex)
        {
            ExitScreen();
        }
    }
}